package helper_ds;
import general_algorithms.RandomNumber;

import java.awt.geom.GeneralPath;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;

/**
 * 
 */

/**
 * @author Tobias Hardes
 * Aug 1, 2014
 * 11:32:46 AM
 */
public class DS_HashMap {

	private  Map<Number, Number> map = new HashMap();
	private static int min = 0;
	private static int max = 50;
	public Map<Number, Number> getMap() {
		return map;
	}
	public void setMap(Map<Number, Number> map) {
		this.map = map;
	}
	public DS_HashMap()
	{
		super();
		generateMap();
		//generateStaticMap();
		
	}
	private void generateMap()
	{
		Random ran = new Random();
		for(int i =0; i< 10; i++)
		{
			//this.map.put(i, ran.nextInt(max - min) + min);
			this.map.put(i, RandomNumber.randint() % max);
		}
	}
	
	private void generateStaticMap()
	{		
		this.map.put(0, 14);
		this.map.put(1, 1);
		this.map.put(2, 2);
		this.map.put(3, 5);
		this.map.put(4, 3);
		this.map.put(5, 7);
		this.map.put(6, 10);
		this.map.put(7, 6);
		this.map.put(8, 11);
		this.map.put(9, 9);
		this.map.put(10, 12);
	}
}
